<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>绑定HTML Class：数组语法</title>
    <script src="./vue.js"></script>
</head>
<body>
    <div id="app">
        <div v-bind:class="[activeClass,errorClass]">
            绑定HTML Class：数组语法
        </div>        
    </div>
</body>
<script>
    var vm = new Vue({
        el: '#app',
        data: {
            activeClass: 'active',
            errorClass: 'text-danger'
        }
    })
</script>
</html>